<?php
$tdatappusers=array();
	$tdatappusers[".ShortName"]="ppusers";
	$tdatappusers[".OwnerID"]="";
	$tdatappusers[".OriginalTable"]="ppusers";


	
//	field labels
$fieldLabelsppusers = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsppusers["English"]=array();
	$fieldToolTipsppusers["English"]=array();
	$fieldLabelsppusers["English"]["email"] = "email";
	$fieldToolTipsppusers["English"]["email"] = "";
	$fieldLabelsppusers["English"]["fullname"] = "fullname";
	$fieldToolTipsppusers["English"]["fullname"] = "";
	$fieldLabelsppusers["English"]["password"] = "password";
	$fieldToolTipsppusers["English"]["password"] = "";
	$fieldLabelsppusers["English"]["username"] = "username";
	$fieldToolTipsppusers["English"]["username"] = "";
	$fieldLabelsppusers["English"]["userid"] = "userid";
	$fieldToolTipsppusers["English"]["userid"] = "";
	$fieldLabelsppusers["English"]["image"] = "Image";
	$fieldToolTipsppusers["English"]["image"] = "";
	if (count($fieldToolTipsppusers["English"])){
		$tdatappusers[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Spanish")
{
	$fieldLabelsppusers["Spanish"]=array();
	$fieldToolTipsppusers["Spanish"]=array();
	$fieldLabelsppusers["Spanish"]["email"] = "email";
	$fieldToolTipsppusers["Spanish"]["email"] = "";
	$fieldLabelsppusers["Spanish"]["fullname"] = "fullname";
	$fieldToolTipsppusers["Spanish"]["fullname"] = "";
	$fieldLabelsppusers["Spanish"]["password"] = "password";
	$fieldToolTipsppusers["Spanish"]["password"] = "";
	$fieldLabelsppusers["Spanish"]["username"] = "username";
	$fieldToolTipsppusers["Spanish"]["username"] = "";
	$fieldLabelsppusers["Spanish"]["userid"] = "userid";
	$fieldToolTipsppusers["Spanish"]["userid"] = "";
	$fieldLabelsppusers["Spanish"]["image"] = "Image";
	$fieldToolTipsppusers["Spanish"]["image"] = "";
	if (count($fieldToolTipsppusers["Spanish"])){
		$tdatappusers[".isUseToolTips"]=true;
	}
}


	

	

$tdatappusers[".shortTableName"] = "ppusers";
$tdatappusers[".nSecOptions"] = 0;
$tdatappusers[".recsPerRowList"] = 1;	
$tdatappusers[".tableGroupBy"] = "0";
$tdatappusers[".mainTableOwnerID"] = "";
$tdatappusers[".moveNext"] = 1;




$tdatappusers[".showAddInPopup"] = false;

$tdatappusers[".showEditInPopup"] = false;

$tdatappusers[".showViewInPopup"] = false;


$tdatappusers[".fieldsForRegister"] = array();

$tdatappusers[".listAjax"] = false;

	$tdatappusers[".audit"] = true;

	$tdatappusers[".locking"] = false;
	
$tdatappusers[".edit"] = true;
$tdatappusers[".inlineEdit"] = true;
$tdatappusers[".view"] = true;

$tdatappusers[".exportTo"] = true;

$tdatappusers[".printFriendly"] = true;

$tdatappusers[".delete"] = true;

$tdatappusers[".showSimpleSearchOptions"] = false;

$tdatappusers[".showSearchPanel"] = true;


$tdatappusers[".isUseAjaxSuggest"] = true;



// button handlers file names

$tdatappusers[".addPageEvents"] = false;

$tdatappusers[".arrKeyFields"][] = "password";
$tdatappusers[".arrKeyFields"][] = "username";

// use datepicker for search panel
$tdatappusers[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatappusers[".isUseTimeForSearch"] = false;

$tdatappusers[".isUseiBox"] = false;


	

	


$tdatappusers[".isUseInlineAdd"] = true;

$tdatappusers[".isUseInlineEdit"] = true;
$tdatappusers[".isUseInlineJs"] = $tdatappusers[".isUseInlineAdd"] || $tdatappusers[".isUseInlineEdit"];

$tdatappusers[".allSearchFields"] = array();

$tdatappusers[".globSearchFields"][] = "email";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("email", $tdatappusers[".allSearchFields"]))
{
	$tdatappusers[".allSearchFields"][] = "email";	
}
$tdatappusers[".globSearchFields"][] = "fullname";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("fullname", $tdatappusers[".allSearchFields"]))
{
	$tdatappusers[".allSearchFields"][] = "fullname";	
}
$tdatappusers[".globSearchFields"][] = "password";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("password", $tdatappusers[".allSearchFields"]))
{
	$tdatappusers[".allSearchFields"][] = "password";	
}
$tdatappusers[".globSearchFields"][] = "username";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("username", $tdatappusers[".allSearchFields"]))
{
	$tdatappusers[".allSearchFields"][] = "username";	
}


$tdatappusers[".googleLikeFields"][] = "userid";
$tdatappusers[".googleLikeFields"][] = "email";
$tdatappusers[".googleLikeFields"][] = "fullname";
$tdatappusers[".googleLikeFields"][] = "password";
$tdatappusers[".googleLikeFields"][] = "username";



$tdatappusers[".advSearchFields"][] = "userid";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("userid", $tdatappusers[".allSearchFields"])) 
{
	$tdatappusers[".allSearchFields"][] = "userid";	
}
$tdatappusers[".advSearchFields"][] = "email";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("email", $tdatappusers[".allSearchFields"])) 
{
	$tdatappusers[".allSearchFields"][] = "email";	
}
$tdatappusers[".advSearchFields"][] = "fullname";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("fullname", $tdatappusers[".allSearchFields"])) 
{
	$tdatappusers[".allSearchFields"][] = "fullname";	
}
$tdatappusers[".advSearchFields"][] = "password";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("password", $tdatappusers[".allSearchFields"])) 
{
	$tdatappusers[".allSearchFields"][] = "password";	
}
$tdatappusers[".advSearchFields"][] = "username";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("username", $tdatappusers[".allSearchFields"])) 
{
	$tdatappusers[".allSearchFields"][] = "username";	
}

$tdatappusers[".isTableType"] = "list";


	



// Access doesn't support subqueries from the same table as main
$tdatappusers[".subQueriesSupAccess"] = true;





$tdatappusers[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatappusers[".strOrderBy"] = $gstrOrderBy;
	
$tdatappusers[".orderindexes"] = array();

$tdatappusers[".sqlHead"] = "select email,  fullname,  password,  username,  userid,  image";
$tdatappusers[".sqlFrom"] = "FROM ppusers";
$tdatappusers[".sqlWhereExpr"] = "";
$tdatappusers[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatappusers[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatappusers[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "password";
	$tableKeys[] = "username";
	$tdatappusers[".Keys"] = $tableKeys;

//	email
	$fdata = array();
	$fdata["strName"] = "email";
	$fdata["ownerTable"] = "ppusers";
	$fdata["Label"]=GetFieldLabel("ppusers","email"); 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "email";
	
		$fdata["FullName"]= "email";
	
		
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=50";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappusers["email"]=$fdata;
//	fullname
	$fdata = array();
	$fdata["strName"] = "fullname";
	$fdata["ownerTable"] = "ppusers";
	$fdata["Label"]=GetFieldLabel("ppusers","fullname"); 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "fullname";
	
		$fdata["FullName"]= "fullname";
	
		
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=50";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappusers["fullname"]=$fdata;
//	password
	$fdata = array();
	$fdata["strName"] = "password";
	$fdata["ownerTable"] = "ppusers";
	$fdata["Label"]=GetFieldLabel("ppusers","password"); 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "password";
	
		$fdata["FullName"]= "password";
	
		
		
		
		
		
				$fdata["Index"]= 3;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=30";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappusers["password"]=$fdata;
//	username
	$fdata = array();
	$fdata["strName"] = "username";
	$fdata["ownerTable"] = "ppusers";
	$fdata["Label"]=GetFieldLabel("ppusers","username"); 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "username";
	
		$fdata["FullName"]= "username";
	
		
		
		
		
		
				$fdata["Index"]= 4;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=30";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappusers["username"]=$fdata;
//	userid
	$fdata = array();
	$fdata["strName"] = "userid";
	$fdata["ownerTable"] = "ppusers";
	$fdata["Label"]=GetFieldLabel("ppusers","userid"); 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "userid";
	
		$fdata["FullName"]= "userid";
	
		
		
		
		
		
				$fdata["Index"]= 5;
				$fdata["EditParams"]="";
			
		
		
		
		
		
		
		
		
		
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
		//End validation
	
				
		
				
		
		
		
			$tdatappusers["userid"]=$fdata;
//	image
	$fdata = array();
	$fdata["strName"] = "image";
	$fdata["ownerTable"] = "ppusers";
	$fdata["Label"]=GetFieldLabel("ppusers","image"); 
	
		
		
	$fdata["FieldType"]= 128;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Database image";
	$fdata["ViewFormat"]= "Database Image";
	
		
		
			$fdata["ImageWidth"] = 100;
	$fdata["ImageHeight"] = 100;
	
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "image";
	
		$fdata["FullName"]= "image";
	
		
		
		
		
		
				$fdata["Index"]= 6;
				
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
		
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatappusers["image"]=$fdata;


	
$tables_data["ppusers"]=&$tdatappusers;
$field_labels["ppusers"] = &$fieldLabelsppusers;
$fieldToolTips["ppusers"] = &$fieldToolTipsppusers;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["ppusers"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["ppusers"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










function createSqlQuery_ppusers()
{
$proto0=array();
$proto0["m_strHead"] = "select";
$proto0["m_strFieldList"] = "email,  fullname,  password,  username,  userid,  image";
$proto0["m_strFrom"] = "FROM ppusers";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
$proto0["m_strTail"] = "";
$proto1=array();
$proto1["m_sql"] = "";
$proto1["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto1["m_column"]=$obj;
$proto1["m_contained"] = array();
$proto1["m_strCase"] = "";
$proto1["m_havingmode"] = "0";
$proto1["m_inBrackets"] = "0";
$proto1["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto1);

$proto0["m_where"] = $obj;
$proto3=array();
$proto3["m_sql"] = "";
$proto3["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto3["m_column"]=$obj;
$proto3["m_contained"] = array();
$proto3["m_strCase"] = "";
$proto3["m_havingmode"] = "0";
$proto3["m_inBrackets"] = "0";
$proto3["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto3);

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto5=array();
			$obj = new SQLField(array(
	"m_strName" => "email",
	"m_strTable" => "ppusers"
));

$proto5["m_expr"]=$obj;
$proto5["m_alias"] = "";
$obj = new SQLFieldListItem($proto5);

$proto0["m_fieldlist"][]=$obj;
						$proto7=array();
			$obj = new SQLField(array(
	"m_strName" => "fullname",
	"m_strTable" => "ppusers"
));

$proto7["m_expr"]=$obj;
$proto7["m_alias"] = "";
$obj = new SQLFieldListItem($proto7);

$proto0["m_fieldlist"][]=$obj;
						$proto9=array();
			$obj = new SQLField(array(
	"m_strName" => "password",
	"m_strTable" => "ppusers"
));

$proto9["m_expr"]=$obj;
$proto9["m_alias"] = "";
$obj = new SQLFieldListItem($proto9);

$proto0["m_fieldlist"][]=$obj;
						$proto11=array();
			$obj = new SQLField(array(
	"m_strName" => "username",
	"m_strTable" => "ppusers"
));

$proto11["m_expr"]=$obj;
$proto11["m_alias"] = "";
$obj = new SQLFieldListItem($proto11);

$proto0["m_fieldlist"][]=$obj;
						$proto13=array();
			$obj = new SQLField(array(
	"m_strName" => "userid",
	"m_strTable" => "ppusers"
));

$proto13["m_expr"]=$obj;
$proto13["m_alias"] = "";
$obj = new SQLFieldListItem($proto13);

$proto0["m_fieldlist"][]=$obj;
						$proto15=array();
			$obj = new SQLField(array(
	"m_strName" => "image",
	"m_strTable" => "ppusers"
));

$proto15["m_expr"]=$obj;
$proto15["m_alias"] = "";
$obj = new SQLFieldListItem($proto15);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto17=array();
$proto17["m_link"] = "SQLL_MAIN";
			$proto18=array();
$proto18["m_strName"] = "ppusers";
$proto18["m_columns"] = array();
$proto18["m_columns"][] = "email";
$proto18["m_columns"][] = "fullname";
$proto18["m_columns"][] = "password";
$proto18["m_columns"][] = "username";
$proto18["m_columns"][] = "userid";
$proto18["m_columns"][] = "image";
$obj = new SQLTable($proto18);

$proto17["m_table"] = $obj;
$proto17["m_alias"] = "";
$proto19=array();
$proto19["m_sql"] = "";
$proto19["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto19["m_column"]=$obj;
$proto19["m_contained"] = array();
$proto19["m_strCase"] = "";
$proto19["m_havingmode"] = "0";
$proto19["m_inBrackets"] = "0";
$proto19["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto19);

$proto17["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto17);

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$obj = new SQLQuery($proto0);

return $obj;
}
$queryData_ppusers = createSqlQuery_ppusers();
$tdatappusers[".sqlquery"] = $queryData_ppusers;



$tableEvents["ppusers"] = new eventsBase;
$tdatappusers[".hasEvents"] = false;

?>
